<template>
  <ul>
    <li v-for="(item, index) in list" :key="item">
      <!-- 怎么把数据暴漏给插槽结构 -->
      <!-- 在slot组件上可以给插槽结构暴漏数据 -->
      <slot :row="item" :index="index" />
    </li>
  </ul>
</template>

<script>
export default {
  name: 'sg-list',
  data () {
    return {

    }
  },

  props: ['list'],

  created () {

  },

  methods: {

  }
}
</script>

<style scoped lang='less'>

</style>
